package com.bookmanger.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bookmanger.common.result.Result;
import com.bookmanger.entity.Order;
import com.bookmanger.entity.dto.BookBorrowDTO;
import com.bookmanger.entity.dto.OrderDTO;
import com.bookmanger.entity.select.OrderBookListDTO;
import com.bookmanger.entity.vo.ListForm;
import com.bookmanger.entity.vo.OrderBookListVo;

import java.util.List;

/**
 * @author huangfuhao
 * @Date 2024/11/6
 */
public interface BookBorrowService extends IService<Order> {

    Result<BookBorrowDTO> borrow(Order order);

    Result<BookBorrowDTO> restore(Order order);

    Result<List<BookBorrowDTO>> record();

    Result<ListForm<OrderBookListVo>> getOrderList(OrderBookListDTO orderBookListDTO);

    Result<BookBorrowDTO> passBorrow(Order order);

    Result<BookBorrowDTO> passRestore(Order order);

    Result<BookBorrowDTO> refuseRestore(Order order);

    Result<List<OrderDTO>> orders(Order order);
}
